module.exports = options =>{
    return async function adminauthor(ctx,next){
        // console.log(ctx.session.openId,'openId-=-=-=');
        if(ctx.session.openId){
            await next()
        }
        else{
            ctx.body = {
                data:'未登录'
            }
        }
    }
}